package com.itheima.tlias.controller;

import com.itheima.tlias.dto.PageDto;
import com.itheima.tlias.service.LogPageService;
import com.itheima.tlias.vo.LogVo;
import com.itheima.tlias.vo.PageBean;
import com.itheima.tlias.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 日志管理
 */
@RestController
public class LogPageController {
    @Autowired
    private LogPageService logPageService;
    @GetMapping("/log/page")
    private Result<PageBean<LogVo>> list(PageDto dto) throws Exception {
        PageBean<LogVo> depts = logPageService.depts(dto);
        return Result.success(depts);
    }

}
